# Makefile for libavcodec

AR	= ar
ARFLAGS	= cr

CC	= gcc
CFLAGS	= -Wall -O3 -g

LIB	= libavcodec.a
SOURCES	= $(wildcard *.c)
OBJECTS	= $(SOURCES:%.c=%.o)

$(LIB): $(OBJECTS)
	$(CROSS)$(AR) $(ARFLAGS) $@ $(OBJECTS)

$(OBJECTS): %.o: %.c
	$(CROSS)$(CC) $(CFLAGS) -c $< -o $@

clean:
	-rm -f $(OBJECTS) $(LIB) *~

.PHONY: clean
